<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
	<link href="./toastr.css" rel="stylesheet"/>
	  <script src="./jquery.min.js"></script>
      <script src="./toastr.min.js"></script>
</head>

<body>
			<button onclick='show()'>出现</button>
</body>
<script>
 
 
	function show(){
	//显示一个信息没有标题
	toastr.options = {  
        closeButton: false,  
        debug: false,  
        progressBar: true,  
        positionClass: "toast-top-center",  
        onclick: null,  
        showDuration: "300",  
        hideDuration: "1000",  
        timeOut: "1000",  
        extendedTimeOut: "1000",  
        showEasing: "swing",  
        hideEasing: "linear",  
        showMethod: "fadeIn",  
        hideMethod: "fadeOut"  
    }; 
	toastr.error('Are you the 6 fingered man?')
 
	}
	   let A
    A && fun1(A);
    console.log(222);
    function fun1(a) {
        console.log(a);
    }

</script>
</html>